Hi all!
string funcGetCellValue(OleAutoObj xlSheet, string sCellRef, string &sValue)
{
OleAutoObj xlCell
string sErrmsg
sErrmsg = funcGetCell(xlSheet, sCellRef, xlCell)
if ( !null(sErrmsg) )
{
return sErrmsg
}
sErrmsg = oleGet(xlCell, "Value", sValue)
return sErrmsg
}
a_vestlin - Wed Feb 16 04:40:11 EST 2011 |
Re: Read date format from Excel I found a solution. It is possible to use the "Text" property instead, which will return the displayed text. /Anders |
Re: Read date format from Excel a_vestlin - Wed Feb 16 05:21:15 EST 2011 BR, Vincent. |
Re: Read date format from Excel Debug.Print CDate(1.5) So VB counts dates from 30 December 1899 at 00:00:00 So you have to add 25569 days and then multiply by 86400 seconds, Dim dYourVBDate As Date, lYourDXLDate As Long
|